How to concatenate all elements of a list into strings in Python using for loop